package com.yycx.msg.client.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * @author woodev
 */
@ApiModel("短信消息")
@Data
public class SmsMessage extends BaseMessage {

    private static final long serialVersionUID = -8924332753124953766L;

    @ApiModelProperty("手机号码")
    private String phoneNum;
    @ApiModelProperty("短信签名")
    private String signName;
    @ApiModelProperty("验证码")
    private String code;
    @ApiModelProperty("模板编号")
    private String tplCode;
    @ApiModelProperty("模板参数")
    private Map<String, Object> tplParams = new HashMap<>();

    public void add(String key, Object v) {
        tplParams.put(key, v);
    }
}
